package com.shangguan.atcrowdfunding.manager.service.impl;

import com.shangguan.atcrowdfunding.bean.User;
import com.shangguan.atcrowdfunding.manager.mapper.UserMapper;
import com.shangguan.atcrowdfunding.manager.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @ClassName: UserServiceImpl
 * @Description:
 * @Author: 一尘
 * @Date: 2020 年 01 月 14 11:05
 * @Version 1.0
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    UserMapper userMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return userMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(User record) {
        return userMapper.insert(record);
    }

    @Override
    public User selectByPrimaryKey(Integer id) {
        return userMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<User> selectAll() {
        return userMapper.selectAll();
    }

    @Override
    public int updateByPrimaryKey(User record) {
        return userMapper.updateByPrimaryKey(record);
    }

    @Override
    public User queryUserLogin(Map<String, Object> paramMap) {
        return userMapper.queryUserLogin(paramMap);
    }

   /* @Override
    public List<User> queryUserByPage( int startIndex,int size) {

        return userMapper.queryUserByPage(startIndex,size);
    }*/

    @Override
    public List<User> queryUserByPage( Map<String ,Object> paramMap) {

        return userMapper.queryUserByPage(paramMap);
    }

    @Override
    public List<User> selectLikeAll(Map<String ,Object> paramMap) {
        return userMapper.selectLikeAll(paramMap);
    }
}
